import RequestV2 from "@/utils/requestV2";

export function getCategory(){
  return RequestV2({
    url: 'operationAid/productPicture/category',
  })
}

export function page(params){
  return RequestV2({
    url: 'operationAid/productPicture/page',
    params: {
      pageNo: params.pageNo,
      pageSize: params.pageSize,
      category: params.category
    }
  })
}

export function upload(params){
  return RequestV2({
    url: 'cos/upload',
    params: params
  })
}

export function downloadImage(imageName){
  return RequestV2({
    url: 'cos/download',
    params: {
      imageName: imageName
    }
  })
}
